package com.ctshk.rpc.certificate.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.certificate.dto.AppointmentRoadTripDTO;
import com.ctshk.rpc.certificate.dto.CertificateAcceptDTO;
import com.ctshk.rpc.certificate.dto.CertificateRoadTripDTO;
import com.ctshk.rpc.certificate.req.CertificateAcceptPageReq;
import com.ctshk.rpc.certificate.req.CertificateRoadTripReq;
import com.ctshk.rpc.certificate.req.ProcCommonCertificateReq;
import com.ctshk.rpc.certificate.req.QueryRoadTripInfoReq;

import javax.validation.Valid;

/**
 * <p>
 * 处理换领广东省自驾游 服务类
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-25
 */
public interface ICertificateRoadTripService {

    /**
     * 广东省自驾游登记
     * @param certificateRoadTripReq
     * @param userId
     * @return
     */
    Result saveRoadTrip(CertificateRoadTripReq certificateRoadTripReq, Long userId);

    /**
     * 广东省自驾游信息详情
     * @param id
     * @return
     */
    CertificateRoadTripDTO queryDetail(Long id);

    /**
     * 修改广东省自驾游信息
     * @param certificateRoadTripReq
     * @param userId
     * @return
     */
    Result updateRoadTrip(CertificateRoadTripReq certificateRoadTripReq, Long userId);

    /**
     * 处理广东省自驾游预约信息
     * @param procReserveRoadTripReq
     * @param userId
     * @return
     */
    Result procReserveRoadTrip(ProcCommonCertificateReq procReserveRoadTripReq, Long userId);

    /**
     * 证件受理列表
     * @param acceptPageReq
     * @return
     */
    PageResponse<CertificateAcceptDTO> queryCertificateAcceptList(CertificateAcceptPageReq acceptPageReq);

    Result<AppointmentRoadTripDTO> queryAppointmentInfo(@Valid QueryRoadTripInfoReq queryAppointmentInfoReq, Long userId);

    Result cancelAppointment(Long id, Long userId);
}
